<?php

namespace app\model\group_activity;

use app\BaseModel;
use app\model\not_del\UserModel;
use think\model\relation\BelongsTo;

/**
 * 团体活动-活动评论
 */
class GroupActivityTaskCommentModel extends BaseModel
{
    protected $name = 'group_activity_task_comment';

    /**
     * 用户
     * @return BelongsTo
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo(UserModel::class,'uid')->bind([
            'user_name' => 'name',
            'avatar'
        ]);
    }
}